<form name="itemAddAj" action="{$smarty.server.PHP_SELF}" id="itemAddAj" method="post">
<input type="hidden" name="itemId" value="{$itemId}" />  
<table align="center" border="1" cellpadding="2" cellspacing="1" id="tableItem">
<tr>
  <td align="center" class="table1" colspan="2">Product Entry</td>
</tr>
<tr>
  <td align="right" class="table2">Category :</td>
  <td align="left" class="table2">
    <select name="categoryId" id="categoryId">
      {html_options values=$categoryId output=$categoryName selected=$categorySelected}
    </select>
  </td>
</tr>
<tr>
  <td align="right" class="table2" >Sub Category :</td>
  <td align="left" class="table2">
    <select name="subCategoryId" id="subCategoryId">
      {html_options values=$subCategoryId output=$subCategoryName selected=$subCategorySelected}
    </select>
  </td>
</tr>
<tr>
  <td align="right" class="table2">Product Name :</td>
  <td class="table2"><input type="text" name="itemName" id="itemName" value="{$itemName}" size="100"></td>
</tr>
<tr>
  <td align="right" class="table2">Current Stock :</td>
  <td class="table2"><input type="text" name="currentStock" id="currentStock" value="{$currentStock}"></td>
</tr>
<tr>
  <td align="right" class="table2">Max Level :</td>
  <td class="table2"><input type="text" name="maxLevel" id="maxLevel" value="{$maxLevel}"></td>
</tr>
<tr>
  <td align="right" class="table2">Min Level :</td>
  <td class="table2"><input type="text" name="minLevel" id="minLevel" value="{$minLevel}"></td>
</tr>
<tr>
  <td align="center" class="table2" colspan="2"><input class="button" type="submit" name="insertBtn" value="Submit" class="insertBtn" /></td>
</tr>
</table>
</form>